package com.chaoxing.ai.testdemo.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.awt.*;
import java.io.File;

@FeignClient(name = "speech")
public interface FeignService {
    @PostMapping(value = "/ai/speech/recognition",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    String recognition(@RequestPart("file") MultipartFile file);
}
